

def generate_func_express(key_word,location_type,location_express,operate_value):
    method_express = ''
    if key_word and operate_value and location_type is None and location_express is None:
        if isinstance(operate_value, int):
            method_express = key_word + "(" + str(operate_value) + ")"
        else:
            method_express = key_word + "('" + operate_value + "')"


    elif key_word and location_type is None and location_express is None and operate_value is None:
        method_express = key_word + "()"

    elif key_word and location_type and location_express and operate_value is None:
        method_express = key_word + "('" + location_type + "'," + "'" + location_express + "')"

    elif key_word and location_type and location_express and operate_value:
        if isinstance(operate_value, int):
            method_express = key_word + "('" + location_type + "'," + "'" + location_express + "'," + "'" + str(operate_value) + "')"
        else:
            method_express = key_word + "('" + location_type + "'," + "'" + location_express + "'," + "'" + operate_value + "')"
    return method_express